package com.zy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @SpringBootApplication来标注一个主程序类，说明是一个springboot应用
 * @author 张宇
 * @date 2021/7/26 17:56
 */
@SpringBootApplication
public class mainApplication
{

    public static void main(String[] args)
    {
        SpringApplication.run(mainApplication.class);//spring应用启动起来
        System.out.println( "   项目启动成功   \n" +
                            "  ==        ==  \n" +
                            "   ==      ==   \n" +
                            "    ==    ==    \n" +
                            "     ==  ==     \n" +
                            "       ==       \n" +
                            "       ==       \n" +
                            "       ==       \n" +
                            "       ==       \n");
    }

}

/**
 * 打war包用
 */
//@SpringBootApplication
//public
//class mainApplication extends SpringBootServletInitializer
//{
//
//    public static void main(String[] args)
//    {
//        SpringApplication.run(mainApplication.class, args);
//        System.out.println( "   项目启动成功   \n" +
//                            "  ==        ==  \n" +
//                            "   ==      ==   \n" +
//                            "    ==    ==    \n" +
//                            "     ==  ==     \n" +
//                            "       ==       \n" +
//                            "       ==       \n" +
//                            "       ==       \n" +
//                            "       ==       \n");
//    }
//
//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
//    {
//        return application.sources(mainApplication.class);
//    }
//
//}
